package com.tedu.bill.demo1;

import java.time.Month;
import java.time.Year;
import java.time.temporal.WeekFields;
import java.util.ArrayList;

/**
 * Author：毕龙
 * Date: 2024/5/17 16:29
 */
public class TestCollection3 {
    public static void main(String[] args) {
        JSONResult2<America> ok = JSONResult2.ok(new America());
        System.out.println(ok.getData());
        ArrayList<String> strings = new ArrayList<>();
        strings.add("王伟");
        JSONResult2<ArrayList<String>> ok1 = JSONResult2.ok(strings);
        ArrayList<String> data = ok1.getData();
        System.out.println(data.get(0));

        JSONResult2<User> ok2 = JSONResult2.ok(new User("子枭"));
        System.out.println(ok2.getData().getName());

        System.out.println(ResponseState.RESPONSE_OK.getCode());
        System.out.println(ResponseState.RESPONSE_OK.getMessage());

        System.out.println(WeekDay.SAT);
        System.out.println(Sex.MAN);

        System.out.println(Month.JULY);
        System.out.println(Month.JUNE);
    }


}
